<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>选择器其他练习</title>
		<script type="text/javascript" src="../script/jquery-1.7.2.js"></script>
		<script type="text/javascript">
			$(function () {
				//获取第一个input
				console.log($("input:first"));
				console.log($("input:eq(0)"));
				console.log($("input:lt(1)"));
				//获取最后一个input
				console.log($("input:last"));
				//获取索引值为偶数的input
				console.log($("input:even"));
				//获取索引值为奇数的input
				console.log($("input:odd"));
				//获取索引值大于3的input
				console.log($("input:gt(3)"));
			});
		</script>
	</head>
	<body>
	<input type="text">
	<input type="text">
	<input type="text">
	<input type="text">
	<input type="text">
	<input type="text">
	<input type="text">
	<input type="text">
	</body>
</html>

